<template>
	<view class="main">
		<!-- <view class="about_tit t1">
			{{title}}
		</view> -->
		<view class="about_info t1">{{cont}}</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				cont: '',
				look: '',
				time: '',
				title: ''

			}
		},
		onLoad() {
			this.about();
		},
		methods: {
			about() {
				uni.showLoading();
				uni.request({
					url: 'http://etf.app.longruinet.com/adv/about.ashx', //仅为示例，并非真实接口地址。
					data: {
						type: '关于平台'
					},
					header: {
						'custom-header': 'hello' //自定义请求头信息
					},
					success: (res) => {
						uni.hideLoading();
						// console.log(res.data);
						// console.log(111);
						if (res.data.code == '1') {
							this.cont = res.data.data.cont;
							this.time = res.data.data.time;
							this.title = res.data.data.title;
						} else {

							uni.showToast({
								title: res.data.msg,
								icon: 'none',
								duration: 2000
							});
						}
					},
					fail: (error) => {
						uni.hideLoading();
						console.log(error)
					}
				});
			}
		}
	}
</script>

<style>
	.about_tit {
		width: 100%;
		height: auto;
		display: block;
		float: left;
		text-align: center;
		line-height: 10vw;
		padding: 1vw 0;
		margin-bottom: 2vw;
		border-bottom: 1px solid #ddd;
	}

	.about_info {
		width: 100%;
		height: auto;
		display: block;
		float: left;
		line-height: 7vw;
		margin-top: 4vw;
	}
</style>
